<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>验证密码</title>
    <style>
        .xyq {
            width: 500px;
            margin: 80px auto 10px auto;
            color: #33af44;
        }

        .box {
            width: 500px;
            margin: 0 auto;
            padding: 20px;
        }

        #pwd {
            width: 150px;
            height: 30px;
            line-height: 30px;
            margin-right: 30px;
            padding: 0 5px;
        }

        .btn {
            display: inline-block;
            background: #6ccc6b;
            color: #FFFFFF;
            height: 30px;
            line-height: 30px;
            width: 60px;
            border: 1px solid #6ccc6b;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
        }

    </style>
</head>
<body>
<?php

// 创建连接
$conn = new mysqli("localhost", "root", "root", "xyq");
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}

$id = $_GET['id'];
setcookie("id", $id);
//echo $id;
$result = $conn->query("SELECT * FROM `xyq` WHERE `id` = $id");
$row = $result->fetch_assoc();
//echo $row["password"];
?>

        <form action="del.php" method="get">
            <h2 class="xyq">验证密码</h2>
            <div class="box">
                输入密码：
                <input type="text" id="pwd" name="pwd" placeholder="6个字符以内" required="required">
                <input type="submit" value="提交" class="btn">
                <button class="btn" onclick="location.href='index.php'">取消</button>
            </div>
        </form>

<?php
$conn->close();

?>
<script>


</script>
</body>
</html>